package com.yf.valid;
 
import com.yf.anno.TextAudit;
import com.yf.util.TextAuditUtil;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
 
import java.util.Arrays;
 
public class TextAuditValidator implements ConstraintValidator<TextAudit, String> {


    @Override
    public boolean isValid(String s, ConstraintValidatorContext constraintValidatorContext) {
        return TextAuditUtil.valid(s);
    }
}